package com.specialized.orders.consumer;

import com.specialized.orders.common.domain.RealTime;
import com.specialized.orders.service.IRealTimeService;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RealTimeConsumer {


    @Autowired
    private IRealTimeService realTimeService;

//    @RabbitListener(queuesToDeclare = @Queue(value = "ordersstatus"))
//    public void updOrdersStatusDriver(RealTime realTime) {
//        //查订单
//        RealTime realTimeOrderCard = realTimeService.selectRealTimeOrderCard(realTime.getOrderCard());
//        if(realTimeOrderCard.getOrderStatus().equals(1L)){
//            realTimeService.updateOrdersStatusDriver(realTime.getOrderCard());
//        }
//    }






}
